package org.sdp.pearproject.dao.mapper;

import org.sdp.pearproject.dao.domain.*;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * InterfaceName: TaskMapper
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_task
 * Comment:
 * 任务表
 */
public interface TaskMapper {
    int deleteByPrimaryKey(@Param("id") Integer id, @Param("projectCode") String projectCode);

    int deleteByIdProjectCode(@Param("id") Integer id, @Param("projectCode") String projectCode);

    int deleteByCode(String code);

    int deleteByExample(TaskExample example);

    int insert(TaskWithBLOBs record);

    int insertSelective(TaskWithBLOBs record);

    List<TaskWithBLOBs> selectByExampleWithBLOBs(TaskExample example);

    List<Task> selectByExample(TaskExample example);

    int countByExample(TaskExample example);

    Task selectByPrimaryKey(@Param("id") Integer id, @Param("projectCode") String projectCode);

    TaskWithBLOBs selectByPrimaryKeyWithBLOBs(@Param("id") Integer id, @Param("projectCode") String projectCode);

    Task selectByIdProjectCode(@Param("id") Integer id, @Param("projectCode") String projectCode);

    TaskWithBLOBs selectByIdProjectCodeWithBLOBs(@Param("id") Integer id, @Param("projectCode") String projectCode);

    Task selectByCode(String code);

    TaskWithBLOBs selectByCodeWithBLOBs(String code);

    int updateByExampleSelective(@Param("record") TaskWithBLOBs record, @Param("example") TaskExample example);

    int updateByPrimaryKeySelective(TaskWithBLOBs record);

    int updateByIdProjectCodeSelective(TaskWithBLOBs record);

    int updateByCodeSelective(TaskWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(TaskWithBLOBs record);

    int updateByPrimaryKey(Task record);

    int updateByIdProjectCode(Task record);

    int updateByIdProjectCodeWithBLOBs(TaskWithBLOBs record);

}
